package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 处方附加费用表
 * @TableName dzm_his_prescription_extracharges
 */
@TableName(value ="dzm_his_prescription_extracharges")
public class DzmHisPrescriptionExtracharges implements Serializable {
    /**
     * 
     */
    private Object preId;

    /**
     * 添加用户id
     */
    private Integer mid;

    /**
     * 医院id
     */
    private Integer hid;

    /**
     * 处方附加费名称
     */
    private String extrachargesName;

    /**
     * 金额
     */
    private BigDecimal fee;

    /**
     * 处方类型  0:中药处方  1:西药处方
     */
    private Integer type;

    /**
     * 创建时间
     */
    private Integer createTime;

    /**
     * 修改时间
     */
    private Integer updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getPreId() {
        return preId;
    }

    /**
     * 
     */
    public void setPreId(Object preId) {
        this.preId = preId;
    }

    /**
     * 添加用户id
     */
    public Integer getMid() {
        return mid;
    }

    /**
     * 添加用户id
     */
    public void setMid(Integer mid) {
        this.mid = mid;
    }

    /**
     * 医院id
     */
    public Integer getHid() {
        return hid;
    }

    /**
     * 医院id
     */
    public void setHid(Integer hid) {
        this.hid = hid;
    }

    /**
     * 处方附加费名称
     */
    public String getExtrachargesName() {
        return extrachargesName;
    }

    /**
     * 处方附加费名称
     */
    public void setExtrachargesName(String extrachargesName) {
        this.extrachargesName = extrachargesName;
    }

    /**
     * 金额
     */
    public BigDecimal getFee() {
        return fee;
    }

    /**
     * 金额
     */
    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    /**
     * 处方类型  0:中药处方  1:西药处方
     */
    public Integer getType() {
        return type;
    }

    /**
     * 处方类型  0:中药处方  1:西药处方
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 创建时间
     */
    public Integer getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public Integer getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisPrescriptionExtracharges other = (DzmHisPrescriptionExtracharges) that;
        return (this.getPreId() == null ? other.getPreId() == null : this.getPreId().equals(other.getPreId()))
            && (this.getMid() == null ? other.getMid() == null : this.getMid().equals(other.getMid()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getExtrachargesName() == null ? other.getExtrachargesName() == null : this.getExtrachargesName().equals(other.getExtrachargesName()))
            && (this.getFee() == null ? other.getFee() == null : this.getFee().equals(other.getFee()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPreId() == null) ? 0 : getPreId().hashCode());
        result = prime * result + ((getMid() == null) ? 0 : getMid().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getExtrachargesName() == null) ? 0 : getExtrachargesName().hashCode());
        result = prime * result + ((getFee() == null) ? 0 : getFee().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", preId=").append(preId);
        sb.append(", mid=").append(mid);
        sb.append(", hid=").append(hid);
        sb.append(", extrachargesName=").append(extrachargesName);
        sb.append(", fee=").append(fee);
        sb.append(", type=").append(type);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}